/*
 * VarValList.java
 */

package complexchaos;

import java.util.ArrayList;

/**
 * A quick and dirty class written specifically to go with ExpFormula.
 * ExpFormula wants to deal with arrays and this just makes it a bit easier
 * to create them.
 *
 * @author Dan Kotowski
 */
public class VarValList {
    private ArrayList varval;
    private ArrayList varvalline;

    /**
     * Class constructor.
     * @param str usualy the variable
     * @param fm the function
     * @see ExpFormula
     */
    public VarValList(String str, ExpFormula fm)
    {
        varval = new ArrayList();
        varvalline = new ArrayList();
        varvalline.add(str);
        varvalline.add(fm);
        varval.add(varvalline);
    }

    /**
     * Returns the ArrayList with the variable and function.
     * @return variable and function as an ArrayList
     * @see ArrayList
     */
    public ArrayList getList() {
        return varval;
    }
}
